package com.weharvest.edu.exception;

import com.weharvest.edu.enums.WechatExceptionEnum;

/**
 * 微信授权异常
 */
public class WechatException extends   RuntimeException{
    private  Integer code;

    public WechatException(WechatExceptionEnum authorizeExceptionEnum) {
        super(authorizeExceptionEnum.getMsg());
        this.code= authorizeExceptionEnum.getCode();
    }
}

